package org.one.afternoon.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.one.afternoon.domain.User;

@Mapper
public interface AdminMapper {
    @Select("select * from user where username=#{username}")
    User findUserByUsername(String username);

    @Update("update user set online=#{i} where username=#{username}")
    void updateOnline(int i, String username);
}
